Move GdkSurface autocleanup declaration
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Feb 2020 14:17:23 +0000 (09:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:35:55 +0000 (19:35 -0400)
We need this available after including gdksurface.h.

gdk/gdk-autocleanup.h
gdk/gdksurface.h

index 0086e21794dfd05e062cbffac75c312fc6b0dd03..d566986a452e6a4dd9d6c1a555aac5c193496f73 100644 (file)
@@ -37,7 +37,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkMonitor, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkSeat, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPopupLayout, gdk_popup_layout_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkVulkanContext, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkSurface, g_object_unref)
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkContentFormats, gdk_content_formats_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkEvent, g_object_unref)
index 5d796d950832243c3dfad5a9f026627e0b472682..6f24140ece6079bf1d7b8b55c80a799c29517edd 100644 (file)
@@ -603,6 +603,8 @@ GdkVulkanContext *
                gdk_surface_create_vulkan_context(GdkSurface     *surface,
                                                  GError        **error);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GdkSurface, g_object_unref)
+
 G_END_DECLS
 
 #endif /* __GDK_SURFACE_H__ */